<?php 
	echo link_to($gallery->getsfGuardUser()->getAvatarSmall(),'profile/edit?id='.$gallery->getUserId(),array('target'=>'_blank'));
?>

<br />

<?php 		
	echo link_to($gallery->getsfGuardUser()->getNickname(),'profile/edit?id='.$gallery->getUserId(),array('target'=>'_blank'));
?>